import request from '@/utils/request'

// 基础题库列表
export const getBasics = (params) => {
  return request({
    method: 'GET',
    url: '/questions',
    params
  })
}
// 基础题库详情
export const geParticulars = (id) => {
  return request({
    method: 'GET',
    url: '/questions/' + id
  })
}

// 基础题库删除
export const romeParticulars = (id) => {
  return request({
    method: 'DELETE',
    url: '/questions/' + id
  })
}

// 基础题库添加
export const addBasics = (data) => {
  return request({
    method: 'POST',
    url: '/questions',
    data
  })
}

// 基础题库修改
export const modificationBasics = (data) => {
  return request({
    method: 'PUT',
    url: '/questions/' + data.id,
    data
  })
}
